package com.duowei.kitchenshow.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.duowei.kitchenshow.R;
import com.duowei.kitchenshow.bean.Cfpb;
import com.duowei.kitchenshow.bean.Cfpb_complete;
import com.duowei.kitchenshow.bean.Cfpb_item;

import java.util.List;

/**
 * Created by Administrator on 2017-09-14.
 */

public class PassRecyAdapter extends BaseQuickAdapter<Cfpb_item> {
    public PassRecyAdapter(List<Cfpb_item> data) {
        super(R.layout.history_item,data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Cfpb_item cfpb) {
        baseViewHolder.setText(R.id.tv_index,(baseViewHolder.getPosition()+1)+"");
        baseViewHolder.setText(R.id.tv_name,cfpb.xmmc1);
        baseViewHolder.setText(R.id.tv_zh,cfpb.czmc1);
        baseViewHolder.setText(R.id.tv_num,cfpb.sl1+"");
        baseViewHolder.setText(R.id.tv_pz,cfpb.pz);
        baseViewHolder.setText(R.id.tv_yhmc,cfpb.yhmc);
        baseViewHolder.setText(R.id.tv_xdsj,cfpb.xdsj);
        baseViewHolder.setText(R.id.tv_wcsj,cfpb.getWcsj());
    }
}
